package com.shawn.spring.boot.mongo.entity;

import java.util.Date;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author shawn
 * @since 2020/8/26
 */
@Document
@Data
@Builder
public class User {
  @Id private String id;
  private String username;
  private String password;
  private Date createTime;
  private Date updateTime;
}
